<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/static/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/static/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" type="text/css" href="/static/css/ionicons.min.css" />
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/adminlte/dist/css/AdminLTE.min.css">
		<title></title>
	</head>
	<body>

<section class="content">
      <div class="row">
		<div class="col-xs-12">
		          <div class="nav-tabs-custom">
		            <ul class="nav nav-tabs">
		              <li><a href="{:url('Menu/index')}">后台菜单</a></li>
		              <li><a href="{:url('Menu/add')}">添加菜单</a></li>
		              <li class="active"><a href="{:url('Menu/edit')}">编辑菜单</a></li>
		            </ul>
		            <div class="tab-content">
						<form id="myform" class="form-horizontal" action="{:url('menu/update')}" method="post">
			              <div class="box-body">
			              	<div class="form-group">
			              		<label class="col-sm-2 control-label">上级菜单</label>
			              		<div class="col-sm-10">
		                            <select name="pid" class="form-control">
		                                <option value="0">一级菜单</option>
		                                {foreach name="admin_menu_level_list" item="vo"}
		                                <option value="{$vo.id}" {if condition="$admin_menu.id==$vo.id"} disabled="disabled"{/if} {if condition="$admin_menu.pid==$vo.id"} selected="selected"{/if}>{neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo['level'];$i++){echo ' ----';}{/php}{/neq} {$vo.title}</option>
		                                {/foreach}		                                
		                            </select>			              			
			              		</div>
			              	</div>
			                <div class="form-group">
			                  <label class="col-sm-2 control-label">菜单名称</label>
			                  <div class="col-sm-10">
			                    <input type="text" name="title" value="{$admin_menu.title}" class="form-control" placeholder="请输入菜单名称">
			                  </div>
			                </div>
			                <div class="form-group">
			                  <label class="col-sm-2 control-label">控制器方法</label>
			                  <div class="col-sm-10">
			                    <input type="text" name="name" value="{$admin_menu.name}" class="form-control" placeholder="请输入控制器方法 如：admin/Index/index">
			                  </div>
			                </div>
			                <div class="form-group">
			                	<label class="col-sm-2 control-label">图标</label>
			                	<div class="col-sm-10">
			                		<input type="text" name="icon" value="{$admin_menu.icon}" placeholder="（选填）如：fa fa-home" class="form-control">
			                	</div>
			                </div>
			                <div class="form-group">
			                	<label class="col-sm-2 control-label">状态</label>
			                	<div class="col-sm-10">
									<label class="radio-inline">
									  <input type="radio" name="status" value="1" {if condition="$admin_menu.status==1"} checked="checked"{/if}> 显示
									</label>
									<label class="radio-inline">
									  <input type="radio" name="status" value="0" {if condition="$admin_menu.status==0"} checked="checked"{/if}> 隐藏
									</label>				                		
			                	</div>                            
			                </div>
			                <div class="form-group">
			                	<label class="col-sm-2 control-label">排序</label>
			                	<div class="col-sm-10">
			                		<input type="text" name="sort" value="{$admin_menu.sort}" class="form-control">
			                	</div>
			                </div>
			                <div class="form-group">
			                	<div class="col-sm-offset-2 col-sm-10">
			                		<input type="hidden" name="id" value="{$admin_menu.id}">
				                	<button type="button" id="sub" class="btn btn-primary">保存</button>
			                	</div>
			                </div>		                
			            </form>
		              </div>
		            </div><!-- /.tab-content -->
		          </div><!-- /.nav-tabs-custom -->
		</div><!--/.row-->
      </div>
  </section>
<!-- jQuery 2.2.3 -->
<script src="/static/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/static/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/adminlte/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
